package com.travel.controller;


import com.travel.service.QuestionsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 提问表(Questions)表控制层
 *
 * @author makejava
 * @since 2023-05-09 14:56:20
 */
@RestController
@RequestMapping("questions")
@Api(value = "景点服务问答接口")
public class QuestionsController {
    /**
     * 服务对象
     */
    @Resource
    private QuestionsService questionsService;

    @GetMapping("test")
    @ApiOperation(value="测试测试", notes="测试测试")
    public String test() {
        return "testselect:" + questionsService.getById(1).getQuestionsImages();
    }

}

